﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddClassChooseMajor.aspx.cs"
    Inherits="LabMS.Web.BaseData.AddClassChooseMajor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>专业名称对照表</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript">
    function DbClickEvent(a,b)
    {  
          var ret = new Array(2); 
          ret[0] = a; 
          ret[1] = b;           
          window.returnValue = ret; 
          window.close();
          return false; 
    }
    </script>

</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        专业名称对照表</label>
                </div>
            </div>
        </div>
        <div class="main">
            <div>
                <table border="0" cellpadding="4" cellspacing="0">
                    <tr>
                        <td>
                            <label class="itemTitle">
                                专业代码</label></td>
                        <td>
                            <asp:TextBox ID="tb_Code" runat="server" /></td>
                        <td>
                            <label class="itemTitle">
                                专业名称</label></td>
                        <td>
                            <asp:TextBox ID="tb_Name" runat="server" /></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Search" runat="server" Text="搜索" OnClick="Search_Click" CssClass="button" />
                            <asp:Button ID="Reset" Text="重置" runat="server" OnClick="Reset_Click" CssClass="button" /></td>
                    </tr>
                </table>
            </div>
            <div>
                <asp:GridView ID="Gv_Pro" CssClass="infoTable" Width="98%" AllowPaging="true" AutoGenerateColumns="false"
                    PageSize="10" DataKeyNames="ID" runat="server" OnPageIndexChanging="Gv_Pro_PageIndexChanging"
                    OnRowDataBound="Gv_Pro_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="chk" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID" />
                        <asp:BoundField DataField="Pro_Code" HeaderText="专业代码" />
                        <asp:BoundField DataField="Pro_Name" HeaderText="专业名词" />
                        <asp:BoundField DataField="Pro_EnglishName" HeaderText="英语名称" />
                    </Columns>
                    <EmptyDataTemplate>
                        无内容
                    </EmptyDataTemplate>
                    <HeaderStyle CssClass="header" />
                    <PagerSettings FirstPageText="首页" LastPageText="最后页" NextPageText="后一页" PreviousPageText="前一页"
                        Mode="NextPreviousFirstLast" />
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>

<script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

<script type="text/javascript">
        $(function(){
            /* 修改样式 */
            $("#Gv_Pro > tbody > tr:even").not(":first").addClass("even");
            $("#Gv_Pro > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        });
</script>

